﻿namespace ECommerce.Web.Models
{
    public class BasketItem : Entity
    {
        public virtual Basket Basket { get; set; }
        public virtual Product Product { get; set; }
        public virtual int Quantity { get; set; }

        public virtual decimal GetTotal()
        {
            return Quantity * Product.Price;
        }
    }
}
